home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / MacPerl 5.1.3 / Mac_Perl_513_src / MacPerl5 / MPWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-08  |  2.3 KB  |  99 lines  |  [TEXT/MPS ]

  1. /*********************************************************************
  2. Project    :    MacPerl            -    Real Perl Application
  3. File        :    MPWindow.h        -
  4. Author    :    Matthias Neeracher
  5.  
  6. A lot of this code is borrowed from 7Edit written by
  7. Apple Developer Support UK
  8.  
  9. Language    :    MPW C
  10.  
  11. $Log: MPWindow.h,v $
  12. Revision 1.3  1994/05/04  03:18:45  neeri
  13. C++ freaked out at use of name "inline".
  14.  
  15. Revision 1.2  1994/05/04  02:52:40  neeri
  16. Inline Input.
  17.  
  18. Revision 1.1  1994/02/27  23:04:48  neeri
  19. Initial revision
  20.  
  21. Revision 0.4  1993/08/24  00:00:00  neeri
  22. DoContent needs EventRecord *
  23.  
  24. Revision 0.3  1993/08/05  00:00:00  neeri
  25. Show window status
  26.  
  27. Revision 0.2  1993/05/30  00:00:00  neeri
  28. Support Console Windows
  29.  
  30. Revision 0.1  1993/05/29  00:00:00  neeri
  31. Compiles correctly
  32.  
  33. *********************************************************************/
  34.  
  35. #ifndef __MPWINDOW__
  36. #define __MPWINDOW__
  37.  
  38. #include <Memory.h>
  39. #include <Types.h>
  40. #include <QuickDraw.h>
  41. #include <Controls.h>
  42. #include <Fonts.h>
  43. #include <ToolUtils.h>
  44. #include <Traps.h>
  45. #include "MPGlobals.h"
  46. #include "MPUtils.h"
  47. #include "MPEditions.h"
  48. #include "MPAppleEvents.h"
  49.  
  50. pascal DPtr DPtrFromWindowPtr(WindowPtr w);
  51.  
  52. pascal void MyGrowWindow(WindowPtr w,
  53.                          Point     p);
  54.  
  55. pascal void DoZoom(WindowPtr w, short c, Point p);
  56.  
  57. pascal void DoContent(WindowPtr theWindow, EventRecord * theEvent);
  58.  
  59. pascal void AdjustScript(DPtr doc);
  60.  
  61. pascal OSErr DoActivate(WindowPtr theWindow, Boolean   activate);
  62.  
  63. pascal void DoUpdate(DPtr theDoc, WindowPtr theWindow);
  64.  
  65. pascal DPtr NewDocument(Boolean isForOldDoc, WindowKind kind);
  66.  
  67. pascal void CloseMyWindow(WindowPtr aWindow);
  68.  
  69. pascal void ShowSelect(DPtr theDoc);
  70.  
  71. pascal void AdjustScrollbars(DPtr theDoc, Boolean needsResize);
  72.  
  73. pascal void GetWinContentRect(WindowPtr theWindow, Rect *r);
  74.  
  75. pascal void ResizeWindow(DPtr theDoc);
  76.  
  77. pascal void ResizePageSetupForDocument(DPtr theDoc);
  78.  
  79. pascal void InvalidateDocument(DPtr theDoc);
  80.  
  81. pascal void DrawPageExtras(DPtr theDoc);
  82.  
  83. pascal void PrintWindow(DPtr theDoc, Boolean askUser);
  84.  
  85. pascal void ShowWindowStatus();
  86.  
  87. pascal void UseInlineInput(Boolean useInline);
  88.  
  89. pascal void DoShowWindow(WindowPtr win);
  90.  
  91. pascal void DoHideWindow(WindowPtr win);
  92.  
  93. pascal WindowPtr AlreadyOpen(FSSpec * spec, StringPtr name);
  94.  
  95. pascal void VActionProc(ControlHandle control, short part);
  96.  
  97. pascal void DoThumb(DPtr theDoc, ControlHandle cntl, short oldValue);
  98.  
  99. #endif